//
//  Header.h
//  soccer
//
//  Created by 上官千城 on 15/9/1.
//  Copyright (c) 2015年 上官千城. All rights reserved.
//

#ifndef soccer_Header_h
#define soccer_Header_h


#ifdef __OBJC__

#import "AppDelegate.h"
#import "PrefixHeader.pch"
#import "AFNGetDataValue.h"
#import "CoreDataHandle.h"


#endif

#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

//判断当前系统版本和手机类型
#define     iOS8     ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) ? YES : NO

#define     iPHone6   ([UIScreen mainScreen].bounds.size.height == 667) ? YES : NO

//定义第三方友盟key
#define     YOUMENGKEY       @"5225ae5956240be8d70750dd"

//定义屏幕的宽 高
#define WIDTH ([UIScreen mainScreen].bounds.size.width)
#define HEIGHT ([UIScreen mainScreen].bounds.size.height)


#define RGBACOLOR(R,G,B,A) [UIColor colorWithRed:(R)/255.0f green:(G)/255.0f blue:(B)/255.0f alpha:(A)]



#endif
